package com.woniuxy.business.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.commons.entity.Message;
import com.woniuxy.commons.entity.QueryEntity;
import com.woniuxy.commons.utils.ResponseResult;

import java.util.List;

/**
 * @author 雷珉
 * @date 2022年06月08日 16:27
 */
public interface MessageService {
    ResponseResult<List<Message>> findAll();

    ResponseResult<PageInfo<Message>> findAllByCondition(QueryEntity<Message> queryEntity);

    ResponseResult<Message> findOne(int id);

    ResponseResult addOne(Message message);

    ResponseResult deleteOne(int id);

    ResponseResult deleteBatch(int[] ids);

    ResponseResult updateOne(Message message);

    ResponseResult send(int messageId,int[] userIds);
}